package com.yy.permissions_general.module.generator.base;


import com.yy.permissions_general.module.generator.core.model.GeneratorInfo;

/**
 * @Description: TODO FastCoding代码生成器抽象类
 * @Author: YangYI
 * @Date: 2021/8/4
 **/
public abstract class AbstractFastCodingGenerator {

    /**
     * 生成信息
     */
    protected GeneratorInfo generatorInfo;

    /**
     * 初始化配置
     */
    public void init(GeneratorInfo generatorInfo) {
        this.generatorInfo = generatorInfo;
    }

    /**
     * 执行生成
     * @return 临时路径
     * @throws Exception
     */
    public abstract String execute() throws Exception;

}
